﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimpleRest.Core.Exceptions;

namespace SimpleRest.Core.Extensions.Exceptions
{
    public class GeneralDescriptionException : WebExceptionBase
    {
        public GeneralDescriptionException()
            : base("General description was provided multiple times for the same service.") { }
        public GeneralDescriptionException(string service)
            : base(string.Format("General description was provided multiple times for the same service: /{0}.", service)) { }

        public override System.Net.HttpStatusCode StatusCode
        {
            get { return System.Net.HttpStatusCode.InternalServerError; }
        }

        public override string ErrorCode
        {
            get { return "500"; }
        }
    }
}
